<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8"/>
    <title>给网页换皮肤</title>
    <link id="lk" rel="stylesheet" type="text/css" href="css1.css"/>
</head>
<script>
    function skin1(){
    	//要选中的皮肤1
    	var oL = document.getElementById('lk');
    	oL.href ="css1.css";
    }
   
   function skin2(){
    	//要选中的皮肤2
    	var oL = document.getElementById('lk');
    	oL.href = "css2.css";
    }



</script>
<body>
    <input type="button" value="皮肤1" onclick="skin1()"/>
    <input type="button" value="皮肤2" onclick="skin2()"/>
</body>
</html>




































